﻿using System;

namespace N_m3u8DL_RE.Common.Resource;

public static class ResString
{
    public static string CurrentLoc = "zh-CN";

    public static readonly string ReLiveTs = "<RE_LIVE_TS>";

    public static string singleFileSplitWarn = "整段文件已被自动切割为小分片以加速下载";

    public static string singleFileRealtimeDecryptWarn = "实时解密已被强制关闭";

    public static string customAdKeywordsFound = "用户自定义广告分片URL关键字：";

    public static string processImageSub = "正在处理图形字幕";

    public static string cmd_delAfterDone = "完成后删除临时文件";

    public static string cmd_header = "为HTTP请求设置特定的请求头, 例如:\r\n-H \"Cookie: mycookie\" -H \"User-Agent: iOS\"";
    
    public static string cmd_customHLSMethod = "指定HLS加密方式 (AES_128|AES_128_ECB|CENC|CHACHA20|NONE|SAMPLE_AES|SAMPLE_AES_CTR|UNKNOWN)";
    
    public static string cmd_customHLSKey = "指定HLS解密KEY. 可以是文件, HEX或Base64";
    
    public static string cmd_customHLSIv = "指定HLS解密IV. 可以是文件, HEX或Base64";

    public static string cmd_checkSegmentsCount = "检测实际下载的分片数量和预期数量是否匹配";

    public static string newVersionFound = "N_m3u8DL-RE检测到新版本，请尽快升级！https://github.com/nilaoda/N_m3u8DL-RE";

    public static string autoBinaryMerge = "检测到fMP4，自动开启二进制合并";

    public static string autoBinaryMerge2 = "检测到杜比视界内容，自动开启二进制合并";

    public static string autoBinaryMerge3 = "检测到无法识别的加密方式，自动开启二进制合并";

    public static string autoBinaryMerge4 = "检测到CENC加密方式，自动开启二进制合并";

    public static string autoBinaryMerge5 = "检测到杜比视界内容，混流功能已禁用";

    public static string autoBinaryMerge6 = "你已开启下载完成后混流，自动开启二进制合并";

    public static string badM3u8 = "错误的m3u8";

    public static string binaryMerge = "二进制合并中...";

    public static string cmd_Input = "链接或文件";

    public static string cmd_loadKeyFailed = "获取KEY失败，忽略读取.";

    public static string cmd_saveDir = "设置输出目录";

    public static string cmd_keys = "设置解密密钥, 程序调用mp4decrpyt/shaka-packager进行解密. 格式:\r\n--key KID1:KEY1 --key KID2:KEY2\r\n对于KEY相同的情况可以直接输入 --key KEY";

    public static string cmd_saveName = "设置保存文件名";

    public static string cmd_threadCount = "设置下载线程数";

    public static string cmd_downloadRetryCount = "每个分片下载异常时的重试次数";

    public static string cmd_httpRequestTimeout = "HTTP请求的超时时间(秒)";

    public static string cmd_tmpDir = "设置临时文件存储目录";

    public static string realTimeDecMessage = "启用实时解密时，建议用shaka-packager而非mp4decrypt/ffmpeg";

    public static string saveName = "保存文件名: ";

    public static string fetch = "获取: ";

    public static string cmd_useShakaPackager = "解密时使用shaka-packager替代mp4decrypt";

    public static string decryptionFailed = "解密失败";

    public static string cmd_decryptionEngine = "设置解密时使用的第三方程序";

    public static string ffmpegMerge = "调用ffmpeg合并中...";

    public static string ffmpegNotFound = "找不到ffmpeg，请自行下载：https://ffmpeg.org/download.html";

    public static string mkvmergeNotFound = "找不到mkvmerge，请自行下载：https://mkvtoolnix.download/downloads.html";
    
    public static string mp4decryptNotFound = "找不到mp4decrypt，请自行下载：https://www.bento4.com/downloads/";
    
    public static string shakaPackagerNotFound = "找不到shaka-packager，请自行下载：https://github.com/shaka-project/shaka-packager/releases";

    public static string fixingTTML = "正在提取TTML(raw)字幕...";

    public static string fixingTTMLmp4 = "正在提取TTML(mp4)字幕...";

    public static string fixingVTT = "正在提取VTT(raw)字幕...";

    public static string fixingVTTmp4 = "正在提取VTT(mp4)字幕...";

    public static string keyProcessorNotFound = "找不到支持的Processor";

    public static string loadingUrl = "加载URL: ";

    public static string masterM3u8Found = "检测到Master列表，开始解析全部流信息";

    public static string allowHlsMultiExtMap = "已经允许识别多个#EXT-X-MAP标签, 本软件可能无法正确处理, 请手动确认内容完整性";

    public static string matchTS = "内容匹配: HTTP Live MPEG2-TS";

    public static string matchDASH = "内容匹配: Dynamic Adaptive Streaming over HTTP";

    public static string matchMSS = "内容匹配: Microsoft Smooth Streaming";

    public static string matchHLS = "内容匹配: HTTP Live Streaming";

    public static string partMerge = "分片数量大于1800个，开始分块合并...";

    public static string notSupported = "当前输入不受支持: ";

    public static string parsingStream = "正在解析媒体信息...";

    public static string promptChoiceText = "(按键盘上下键以浏览更多内容)";

    public static string promptInfo = "(按 空格键 选择流, 回车键 完成选择)";

    public static string promptTitle = "请选择 你要下载的内容:";

    public static string readingInfo = "读取媒体信息...";

    public static string searchKey = "正在尝试从文本文件搜索KEY...";

    public static string segmentCountCheckNotPass = "分片数量校验不通过, 共{}个,已下载{}.";

    public static string selectedStream = "已选择的流:";

    public static string startDownloading = "开始下载...";

    public static string streamsInfo = "已解析, 共计 {} 条媒体流, 基本流 {} 条, 可选音频流 {} 条, 可选字幕流 {} 条";

    public static string writeJson = "写出meta json";

    public static string noStreamsToDownload = "没有找到需要下载的流";

}